<?php
include_once("common/dbConnect.php");
$handle = db_connect();
$id = $_REQUEST["id"];

$sql="delete from Student where StudentID='$id'";
$result = mysql_query($sql);

if (!$result) {
    echo "There was a database error when executing.";
    echo mysql_error();
    exit;
}
echo "success";